package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/26 17:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class House {
    private Integer houseID;    //ID
    private String  housePlot;      //所属小区
    private String  houseBuild;     //栋数
    private String  houseNum;       //房产编号
    private String  houseName;      //房产名称
    private String  housePeople;    //户主名称
    private String  houseTel;       //联系方式
    private Integer  roomNum;        //房间数
    private String  houseCell;      //单元
    private Integer  houseLevel;    //楼层
    private String  houseDetail;    //描述
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date checkinTime;       //入住时间
    @JsonIgnore
    private String file;

    public House(Integer houseID, String housePlot, String houseBuild, String houseNum, String houseName, String housePeople, String houseTel, Integer roomNum, String houseCell, Integer houseLevel, String houseDetail, Date checkinTime) {
        this.houseID = houseID;
        this.housePlot = housePlot;
        this.houseBuild = houseBuild;
        this.houseNum = houseNum;
        this.houseName = houseName;
        this.housePeople = housePeople;
        this.houseTel = houseTel;
        this.roomNum = roomNum;
        this.houseCell = houseCell;
        this.houseLevel = houseLevel;
        this.houseDetail = houseDetail;
        this.checkinTime = checkinTime;
    }
}
